-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Clickhouse string ordering and string filtering by UTF8 instead of bytes #6143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Hey @casab ! Thanks for contributing! Could you please add an integration test for it? |
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 8 Skipped Deployments
|
645512c
to
63b935c
Compare
@casab is attempting to deploy a commit to the Cube Dev Team on Vercel. A member of the Team first needs to authorize it. |
…e_utf8_filter_order
@casab May I kindly ask you to test with the latest release and rebase your changes on top of it? We have migrated to a new ClickHouse client library recently. Thanks in advance! |
@igorlukanin Can you approve running the workflows? |
Hi @casab Could you please sync with the latest master, resolve conflicts and fix warnings/errors? Ping me whenever you need to approve running workflows! |
@KSDaemon of course, done it. |
@casab Hey! Thnx for the updates! Unfortunately, some lint errors still exists:
Maybe thats because of merge... But anyway... Can you fix them, please? |
@KSDaemon @mcheshkov Hey, I have fixed all the errors. And implemented all the required parts. I would appreciate it if you can review it. Especially the rust part. |
@casab We're actively looking into merging this PR. Could you please resolve the conflicts and resolve on top of master once again? Thanks in advance! |
@igorlukanin sure, I'll look into it and let you know. |
Co-authored-by: Konstantin Burkalev <[email protected]>
…ons/order_by to ClickHouseQuery sqlTemplates()
Clickhouse defaults to using bytes to order by and string manipulation functions such as
lower
,upper
uses ascii. To overcome this limitation they haveCOLLATE
keyword, andlowerUTF8
,upperUTF8
functions.Check List
Description of Changes Made (if issue reference is not provided)
CONCAT
SQL function with js template literal to prevent unnecessary DB function calllowerUTF8
instead oflower
to support utf8 compatible searchCOLLATE ‘en’
when ordering by strings to order incasesensitive. Clickhouse orders by bytes on default.